import service from '@/utils/request'
// @Tags Site_message
// @Summary 创建站内信
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Site_message true "创建站内信"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /site_message/createSite_message [post]
export const createSite_message = (data) => {
  return service({
    url: '/site_message/createSite_message',
    method: 'post',
    data
  })
}

// @Tags Site_message
// @Summary 删除站内信
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Site_message true "删除站内信"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /site_message/deleteSite_message [delete]
export const deleteSite_message = (params) => {
  return service({
    url: '/site_message/deleteSite_message',
    method: 'delete',
    params
  })
}

// @Tags Site_message
// @Summary 批量删除站内信
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除站内信"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /site_message/deleteSite_messageByIds [delete]
export const deleteSite_messageByIds = (params) => {
  return service({
    url: '/site_message/deleteSite_messageByIds',
    method: 'delete',
    params
  })
}

// @Tags Site_message
// @Summary 更新站内信
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Site_message true "更新站内信"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /site_message/updateSite_message [put]
export const updateSite_message = (data) => {
  return service({
    url: '/site_message/updateSite_message',
    method: 'put',
    data
  })
}

// @Tags Site_message
// @Summary 用id查询站内信
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.Site_message true "用id查询站内信"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /site_message/findSite_message [get]
export const findSite_message = (params) => {
  return service({
    url: '/site_message/findSite_message',
    method: 'get',
    params
  })
}

// @Tags Site_message
// @Summary 分页获取站内信列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取站内信列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /site_message/getSite_messageList [get]
export const getSite_messageList = (params) => {
  return service({
    url: '/site_message/getSite_messageList',
    method: 'get',
    params
  })
}

// @Tags Site_message
// @Summary 不需要鉴权的站内信接口
// @Accept application/json
// @Produce application/json
// @Param data query systemReq.Site_messageSearch true "分页获取站内信列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /site_message/getSite_messagePublic [get]
export const getSite_messagePublic = () => {
  return service({
    url: '/site_message/getSite_messagePublic',
    method: 'get',
  })
}
// GetUserMessages 分页获取用户消息
// @Tags Site_message
// @Summary 分页获取用户消息
// @Accept application/json
// @Produce application/json
// @Success 200 {object} response.Response{data=object,msg=string} "成功"
// @Router /site_message/getUserMessages [GET]
export const getUserMessages = (params) => {
  return service({
    url: '/site_message/getUserMessages',
    method: 'GET',
    params
  })
}
// MarkMessageRead 标记消息为已读
// @Tags Site_message
// @Summary 标记消息为已读
// @Accept application/json
// @Produce application/json
// @Success 200 {object} response.Response{data=object,msg=string} "成功"
// @Router /site_message/markMessageRead [POST]
export const markMessageRead = (data) => {
  return service({
    url: '/site_message/markMessageRead',
    method: 'POST',
    data
  })
}
// BatchMarkRead 批量标记为已读
// @Tags Site_message
// @Summary 批量标记为已读
// @Accept application/json
// @Produce application/json
// @Success 200 {object} response.Response{data=object,msg=string} "成功"
// @Router /site_message/batchMarkRead [POST]
export const batchMarkRead = (data) => {
  return service({
    url: '/site_message/batchMarkRead',
    method: 'POST',
    data
  })
}
// BatchDelete 批量删除
// @Tags Site_message
// @Summary 批量删除
// @Accept application/json
// @Produce application/json
// @Success 200 {object} response.Response{data=object,msg=string} "成功"
// @Router /site_message/batchDelete [POST]
export const batchDelete = (data) => {
  return service({
    url: '/site_message/batchDelete',
    method: 'POST',
    data
  })
}
// AllMarkRead 全部标记为已读
// @Tags Site_message
// @Summary 全部标记为已读
// @Accept application/json
// @Produce application/json
// @Success 200 {object} response.Response{data=object,msg=string} "成功"
// @Router /site_message/allMarkRead [POST]
export const allMarkRead = () => {
  return service({
    url: '/site_message/allMarkRead',
    method: 'POST'
  })
}
// AllDelete 全部删除
// @Tags Site_message
// @Summary 全部删除
// @Accept application/json
// @Produce application/json
// @Success 200 {object} response.Response{data=object,msg=string} "成功"
// @Router /site_message/allDelete [POST]
export const allDelete = () => {
  return service({
    url: '/site_message/allDelete',
    method: 'POST'
  })
}

